//
//  StockAnalystTableViewCell.m
//  RedManStock
//
//  Created by lanou3g on 15/7/29.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "StockAnalystTableViewCell.h"
#import "Analyst.h"
@implementation StockAnalystTableViewCell

- (UIImageView *)avatarImageView{
    if (_avatarImageView==nil) {
        _avatarImageView=[[UIImageView alloc]init];
    }
    return _avatarImageView;
}

- (void)setAnalyst:(Analyst *)analyst{
    if (_analyst!=analyst) {
        _analyst=analyst;
    }
    self.avatorButton.layer.cornerRadius=25;
    self.avatorButton.layer.masksToBounds=YES;
    self.nameLabel.text=analyst.name;
    self.titleLabel.text=analyst.viewPointSB.title;
    self.dateLabel.text=analyst.viewPointSB.dateSB;
    self.rightTopLabel.text=analyst.weekUpText;
    self.yieldLabel.text=analyst.avgWeekYieldRateSB;
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    // Configure the view for the selected state
}

@end
